<template>
  <div class="container">
    <Search />
    <Main />
  </div>
</template>

<script>
import Search from './components/search.vue'
import Main from './components/main.vue'

export default {
  data () {
    return {
      search: ''
    }
  },
  mounted () {
    // axios.get('https://api.github.com/search/repositories?q=v&sort=starts')
    //   .then(response => {
    //     const result = response.data
    //     const mostRepo = result.items[0]
    //     this.repoUrl = mostRepo.html_url
    //     this.repoName = mostRepo.name
    //   }).catch(error => {
    //     console.log(error.message)
    //   })
  },
  components: {
    Search,
    Main
  }
}
</script>

<style>
</style>
